import { createRouter, createWebHashHistory } from 'vue-router'
import MusicHome from '../views/MusicHome/index.vue'
import PlayList from '../views/PlayList/index.vue'

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: "/home",
    name: 'MusicHome',
    component: MusicHome
  },
  {
    path: '/playlist',
    name: 'PlayList',
    component: PlayList
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
